
package beans.person;



/**
 *
 * @author Administrador
 */
public class User extends Person {    
    private String idUser;
    private String password;    
    private int level;    
    public User() {
    }
    
    public User(String name, String surname1, String surname2, String documentType, String document, String address, String city, String country, String zipCode,String phone,String email, String idUser, String password, int level) {
        super(name, surname1, surname2, documentType, document, address, city, country, zipCode,phone,email);
        this.idUser = idUser;
        this.password = password;        
        this.level = level;
    }

    
    public String getpassword() {
        return password;
    }

    public void setpassword(String password) {
        this.password = password;
    }

    public String getidUser() {
        return idUser;
    }

    public void setidUser(String idUser) {
        this.idUser = idUser;
    }

    
    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final User other = (User) obj;
        if ((this.idUser == null) ? (other.idUser != null) : !this.idUser.equals(other.idUser)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        return hash;
    }

    @Override
    public String toString() {
        return super.toString();        
    }

}
